const mongoose = require('mongoose')

const advertSchema = new mongoose.Schema({
  ad_image: { type: String, required: true },
  ad_title: { type: String, default: '' },
  ad_link: { type: String, required: true },
  ad_start_time: { type: Number, required: true },
  ad_end_time: { type: Number, required: true },
  ad_available: { type: Boolean, default: true }
})

mongoose.model('Advert', advertSchema)
